package test0103.test02;

public class Company {
    String name;
    Department[]arr=new Department[2];
    int i =0;


    public Company() {
    }

    public Company(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Company{" +
                "name='" + name + '\'' +
                '}';
    }

    public void addDepartment(Department devDepartment) {
    arr[i]=devDepartment;
    i++;
    }
}
